<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link href="<%=path%>/pattern/cm/css/list_public.css"
			type="text/css" rel="stylesheet" />
		<link rel="stylesheet" type="text/css"
			href="<%=path%>/pattern/flexigrid/css/flexigrid/flexigrid.css">
		<script type="text/javascript"
			src="<%=path%>/pattern/jquery-ui-1.7.1.custom/js/jquery-1.3.2.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/pattern/flexigrid/flexigrid.js"></script>
		<script src="<%=path%>/pattern/cm/js/list_public.js"
			language="javascript" type="text/javascript"></script>
		<title>无标题文档</title>
	</head>
	<body>

		<div id="layout">
			<div class="title">
				任务列表
			</div>
			
			<div class="list" id="list">
				<form name="data" method="post">
					<table class="flexme1">
						<thead>
							<tr>
								<th width="40">
									标记
								</th>
								<th width="64">
									任务名称
								</th>
								<th width="192">
									扫描目标
								</th>
								<th width="62">
									扫描策略
								</th>
								<th width="132">
									开始时间
								</th>
								<th width="132">
									结束时间
								</th>
								<th width="62">
									扫描状态
								</th>
								<th width="62">
									安全等级
								</th>
								<th width="62">
									查看详情
								</th>
								<th width="62">
									操作
								</th>
							</tr>
						</thead>
						<tbody>
							<s:iterator value="list">
								<tr>
									<td align="center">
										<input type="checkbox" value="<s:property value="id"/>">
									</td>
									<td align="center">
										<s:property value="taskname"/>
									</td>
									<td align="center">
										<s:property value="target"/>
									</td>
									<td align="center">
										<s:property value="ploy"/>
									</td>
									<td align="center">
										<s:property value="start"/>
									</td>
									<td align="center">
										<s:property value="end"/>
									</td>
									<td align="center">
										<s:property value="status"/>
									</td>
									<td align="center">
										<s:property value="level"/>
									</td>
									<td align="center">
										<a
											href="<%=path%>/task.action?type=to_update&id=<s:property value="id"/>">查看详情</a>
									</td>
									<td align="center">
										&nbsp;
										<s:if test="#session.type == 'admin'">	
										<a
											href="<%=path%>/task.action?type=del&ids=<s:property value="id"/>">删除</a>
										</s:if>	
											&nbsp;&nbsp;
									</td>								
								</tr>
							</s:iterator>
							
						</tbody>
					</table>
				</form>
			</div>
			<div class="bottom">
				<div class="pageup"
					onclick="window.location.href='<%=basePath%>task.action?type=find_all_desc&currentPage=${previousPage}'"></div>
				<div id="pages">
					${currentPage} of ${totalPages}
				</div>
				<div class="pagedown"
					onclick="window.location.href='<%=basePath%>task.action?type=find_all_desc&currentPage=${nextPage}'"></div>
				<div id="records">
					共有 ${totalRows} 条记录
				</div>
				<div class="clear"></div>
			</div>
		</div>
		
		
	</body>
</html>
